/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import java.awt.image.BufferedImage;
/*     */ import net.minecraft.client.Minecraft;
/*     */ import net.minecraft.client.entity.AbstractClientPlayer;
/*     */ import net.minecraft.client.entity.EntityPlayerSP;
/*     */ import net.minecraft.client.renderer.texture.AbstractTexture;
/*     */ import net.minecraft.client.renderer.texture.DynamicTexture;
/*     */ import net.minecraft.client.renderer.texture.ITextureObject;
/*     */ import net.minecraft.client.renderer.texture.TextureManager;
/*     */ import net.minecraft.entity.player.EntityPlayer;
/*     */ import net.minecraft.item.ItemStack;
/*     */ import net.minecraft.util.ResourceLocation;
/*     */ import net.minecraftforge.common.ForgeHooks;
/*     */ 
/*     */ 
/*     */ 
/*     */ public class zn
/*     */ {
/*     */   private static long g;
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"取物品使用时间", "Item_Use_Count"})
/*     */   public static int c() {
/*  24 */     EntityPlayerSP a = (Minecraft.func_71410_x()).field_71439_g;
/*  25 */     return a.func_184587_cr() ? a.func_184605_cv() : 0;
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"取物品最大使用时间", "Item_Use_Count_Max"})
/*     */   public static int s() {
/*  30 */     EntityPlayerSP a = (Minecraft.func_71410_x()).field_71439_g;
/*  31 */     return a.func_184587_cr() ? a.func_184607_cu().func_77988_m() : 0;
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"取活跃物品", "Item_Use"})
/*     */   public static o v() {
/*  36 */     EntityPlayerSP a = (Minecraft.func_71410_x()).field_71439_g;
/*  37 */     return a.func_184587_cr() ? new kd(a.func_184607_cu()) : new kd(ItemStack.field_190927_a);
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"松开使用", "Item_Use_Stop"})
/*     */   public static void v() {
/*  42 */     EntityPlayerSP a = (Minecraft.func_71410_x()).field_71439_g;
/*  43 */     (Minecraft.func_71410_x()).field_71442_b.func_78766_c((EntityPlayer)a);
/*     */   }
/*     */ 
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"玩家名", "取玩家名", "Player_Get_Name"})
/*     */   public static String z() {
/*  49 */     return (Minecraft.func_71410_x()).field_71439_g.func_70005_c_();
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"玩家血量", "取玩家血量", "Player_Get_Health"})
/*     */   public static double d() {
/*  54 */     return (Minecraft.func_71410_x()).field_71439_g.func_110143_aJ();
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"玩家最大血量", "取玩家最大血量", "Player_Get_MaxHealth"})
/*     */   public static double c() {
/*  59 */     return (Minecraft.func_71410_x()).field_71439_g.func_110138_aP();
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"玩家等级", "取玩家等级", "Player_Get_Level"})
/*     */   public static int y() {
/*  64 */     return (Minecraft.func_71410_x()).field_71439_g.field_71068_ca;
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"玩家经验", "取玩家经验", "Player_Get_Exp"})
/*     */   public static double s() {
/*  69 */     return (Minecraft.func_71410_x()).field_71439_g.field_71106_cc;
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"玩家坐标x", "取玩家坐标x", "Player_Get_PosX"})
/*     */   public static double y() {
/*  74 */     return (Minecraft.func_71410_x()).field_71439_g.field_70165_t;
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"玩家坐标y", "取玩家坐标y", "Player_Get_PosY"})
/*     */   public static double t() {
/*  79 */     return (Minecraft.func_71410_x()).field_71439_g.field_70163_u;
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"玩家坐标z", "取玩家坐标z", "Player_Get_PosZ"})
/*     */   public static double h() {
/*  84 */     return (Minecraft.func_71410_x()).field_71439_g.field_70161_v;
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"玩家yaw", "取玩家yaw", "Player_Get_Yaw"})
/*     */   public static double z() {
/*  89 */     return (Minecraft.func_71410_x()).field_71439_g.field_70177_z;
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"玩家pitch", "取玩家pitch", "Player_Get_Pitch"})
/*     */   public static double v() {
/*  94 */     return (Minecraft.func_71410_x()).field_71439_g.field_70125_A;
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"玩家是否飞行", "Player_IsFlying"})
/*     */   public static boolean z() {
/* 107 */     return (Minecraft.func_71410_x()).field_71439_g.field_71075_bZ.field_75100_b;
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"玩家饱食度", "取玩家饱食度", "Player_Get_Food"})
/*     */   public static int t() {
/* 112 */     return (Minecraft.func_71410_x()).field_71439_g.func_71024_bL().func_75116_a();
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"玩家氧气值", "取玩家氧气值", "Player_Get_Air"})
/*     */   public static int h() {
/* 117 */     return (Minecraft.func_71410_x()).field_71439_g.func_70086_ai();
/*     */   }
/*     */ 
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"玩家护甲值", "取玩家护甲值", "Player_Get_Armor"})
/*     */   public static int z() {
/* 123 */     return ForgeHooks.getTotalArmorValue((EntityPlayer)(Minecraft.func_71410_x()).field_71439_g);
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"玩家手持槽", "取玩家手持槽", "Player_Get_CurrentItem"})
/*     */   public static int v() {
/* 128 */     return (Minecraft.func_71410_x()).field_71439_g.field_71071_by.field_70461_c;
/*     */   }
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"玩家是否在水中", "是否在水中", "Player_InWater"})
/*     */   public static boolean v() {
/* 133 */     return (Minecraft.func_71410_x()).field_71439_g.func_70090_H();
/*     */   }
/*     */ 
/*     */ 
/*     */   
/*     */   @eos/moe/dragoncore/t(v = {"取玩家头像", "Player_Head_Texture"})
/*     */   public static String v() {
/* 140 */     EntityPlayerSP a = (Minecraft.func_71410_x()).field_71439_g;
/* 141 */     TextureManager textureManager = Minecraft.func_71410_x().func_110434_K();
/* 142 */     ResourceLocation resourceLocation = new ResourceLocation("dragoncore", "player_head_texture.png");
/* 143 */     ITextureObject iTextureObject = textureManager.func_110581_b(resourceLocation);
/* 144 */     if (a == null) {
/* 145 */       return "unknown.png";
/*     */     }
/* 147 */     if (iTextureObject == null || System.currentTimeMillis() - g > 5000L) {
/* 148 */       if (iTextureObject instanceof AbstractTexture) {
/* 149 */         ((AbstractTexture)iTextureObject).func_147631_c();
/*     */       }
/*     */ 
/*     */ 
/*     */       
/* 154 */       BufferedImage bufferedImage1 = gn.v((AbstractClientPlayer)a);
/* 155 */       int i = bufferedImage1.getWidth() / 8;
/* 156 */       BufferedImage bufferedImage2 = new BufferedImage(i, i, 6);
/* 157 */       for (int j = i; j < i * 2; j++) {
/* 158 */         for (int k = i; k < i * 2; k++) {
/* 159 */           int m = bufferedImage1.getRGB(j, k);
/* 160 */           bufferedImage2.setRGB(j - i, k - i, m);
/*     */         } 
/*     */       } 
/* 163 */       DynamicTexture dynamicTexture = new DynamicTexture(bufferedImage2);
/* 164 */       textureManager.func_110579_a(resourceLocation, (ITextureObject)dynamicTexture);
/*     */     } 
/* 166 */     return "player_head_texture.png";
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\zn.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */